package ru.ifmo;

/**
 * Created by Admin on 03.02.15.
 */
public class SmartSpaceException extends Exception {
    public SmartSpaceException(String message) {
        super(message);
    }

    public SmartSpaceException(String message, Throwable cause) {
        super(message, cause);
    }

    public SmartSpaceException(Throwable cause) {
        super(cause);
    }

    protected SmartSpaceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public SmartSpaceException() {

    }
}


/*
 try {
            //SmartSpaceKP test = new SmartSpaceKP("192.168.1.226", 10010, "X", true);

            SmartSpaceKP test = new SmartSpaceKP("192.168.1.226", 10010, "X", false);
            test.subscribeData(new SmartSpaceTriplet("1", null, null), new TestHandler());
            //test.sleep();

            test.insertData(new SmartSpaceTriplet("1", "2", "3"));
            //test.insertData(new SmartSpaceTriplet("1", "123", "321"));

            //test.printAllData();
            //test.sleep();
            Thread.sleep(1000);
            System.out.println(System.currentTimeMillis());
            test.updateData(new SmartSpaceTriplet("1", "2", "30"), new SmartSpaceTriplet("1", "2", "3"));

            //test.sleep();

            //System.out.println("begin sleeping");
            //test.kp.sleep();
            //System.out.println("end sleeping")

            //test.printAllData();



            //Scanner o = new Scanner(System.in);
            //int k = o.nextInt();
            //System.out.println(k);

        test.cleanSmartSpace();
        test.leaveSmartSpace();
        } catch (SmartSpaceException exception) {
        exception.printStackTrace();
        } catch (InterruptedException e) {
        e.printStackTrace();
        }
 */